import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
import axios from 'axios'
import "bootstrap-icons/font/bootstrap-icons.css"; 
Vue.config.productionTip = false
//创建一个完整的vue实例挂载到Vue原型的自定义属性$bus上
Vue.prototype.$bus = new Vue()
Vue.prototype.$axios = axios
import CommonA from './components/CommonA.vue'
Vue.component('CommonA', CommonA)
//全局自定义指令
Vue.directive('focus', {
 /*  inserted: function(dom元素,传的值) {
    
  } */
  inserted(el,binding) {
    console.log(el,binding.value)
    el.focus()
    el.value=binding.value
  }
})


new Vue({
  methods: {
    fn() {
      console.log(1)
    }
  },
  router,
  store,
  render: h => h(App)
}).$mount('#app')
